// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

import Foundation

extension Bundle {
    /// Get a string from the info plist dictionary for a given key
    public func infoDictionaryString(forKey key: String) -> String {
        guard let value = object(forInfoDictionaryKey: key) as? String else {
            fatalError("Could not find a string value in the Info dictionary with the key: \(key)")
        }
        return value
    }
}
